GtkCheckButton: Look active when the pointer button is pressed and hovering
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Nov 2010 02:02:49 +0000 (03:02 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:39:41 +0000 (15:39 +0100)
gtk/gtkcheckbutton.c

index a27290432e3aabb90fc3830d0dbeb53749253233..91b92f0f7070f86dbf75c740e1ecad059620f1c0 100644 (file)
@@ -444,7 +444,8 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button,
 
   if (gtk_toggle_button_get_inconsistent (toggle_button))
     state |= GTK_STATE_FLAG_INCONSISTENT;
-  else if (gtk_toggle_button_get_active (toggle_button))
+  else if (gtk_toggle_button_get_active (toggle_button) ||
+           (button->priv->button_down && button->priv->in_button))
     state |= GTK_STATE_FLAG_ACTIVE;
 
   if (button->priv->activate_timeout || (button->priv->button_down && button->priv->in_button))